package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs= new Student("张三",25,"河北廊坊","JSD2302","001");
        zs.sayHi();
        zs.study();


        Teacher ls= new Teacher("李四",24,"河南郑州",3000);


        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();


        Docter lw=new Docter("老王",66,"河北石家庄","主任医师");

        lw.eat();
        lw.sleep();
        lw.sayHi();
        lw.cut();
    }
}
